Skip to content

ci: Cloudflare Workers preview + deploy workflows and README rewrite - #6

Merged
JonasJesus42 merged 5 commits into
mainfrom
JonasJesus42/casaevideo-preview-workflow
May 5, 2026
Merged

ci: Cloudflare Workers preview + deploy workflows and README rewrite#6
JonasJesus42 merged 5 commits into
mainfrom
JonasJesus42/casaevideo-preview-workflow

Conversation

@JonasJesus42

Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the legacy ECR/Docker workflow (build-and-push-image.yaml) with Cloudflare Workers CI: preview.yml (versioned PR previews via wrangler versions upload --preview-alias, sticky comment with URLs) and deploy.yml (push-to-mainwrangler deploy).
  • Renames the worker in wrangler.jsonc to storefront-tanstack-template so forks don't collide with other workers on a shared Cloudflare account.
  • Rewrites the top-level README.md: removes all Deno-era instructions, adds a mini-tutorial (prerequisites → install → .envnpm run dev on port 5173 → build), a scripts reference table, a project structure map, and links to @decocms/start and @decocms/apps.
  • Updates .github/workflows/README.md to document the new Cloudflare Workers flow (secrets, triggers, worker naming, custom domain).

Test plan

  • Configure CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID as repo secrets
  • Open this PR → confirm the Preview workflow runs and comments a preview URL
  • Hit the preview URL → expect 200 and the storefront rendering
  • Merge to main → confirm Deploy workflow runs wrangler deploy and the prod worker updates
  • Verify in the Cloudflare dashboard that the worker storefront-tanstack-template exists and didn't overwrite anything pre-existing

🤖 Generated with Claude Code

JonasJesus42 and others added 2 commits April 24, 2026 17:31
Replaces the ECR/Docker workflow with preview.yml (versioned PR previews
via wrangler versions upload --preview-alias) and deploy.yml (push-to-main
wrangler deploy). Renames the worker to storefront-tanstack-template so
forks won't collide with other workers on shared Cloudflare accounts.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Removes Deno-era instructions (deno task start, deno task update, Deno
install link) and replaces them with a mini-tutorial for the current
stack: prerequisites, npm install, .env, npm run dev on port 5173,
build + deploy. Adds links to @decocms/start (deco-start) and
@decocms/apps (apps-start) repos, a scripts reference table, and a
project structure map.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@decobot

decobot commented Apr 24, 2026

Copy link
Copy Markdown

The latest updates on your deployments. beta

Name Status Preview Updated
storefront-tanstack ✅ Ready Visit Preview Apr 24 2026, 9:22 PM (UTC)

Matches the existing :fix pattern (format/format:check,
tailwind:lint/tailwind:fix) and surfaces the unused-code check in
the README scripts reference table.
Guards wrangler versions upload behind a HAS_CF_SECRETS env check so
forks without CLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_ID configured
don't get a red X on every PR. Build still runs (validates code), and
a sticky PR comment explains how to enable previews. Deploy workflow
is intentionally not guarded — prod should fail loudly.
@github-actions

github-actions Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployed

URL
Version
Alias

…eo-preview-workflow

# Conflicts:
#	README.md
@JonasJesus42
JonasJesus42 merged commit 09655bf into main May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants